package com.bawei.module_repair.api

import com.bawei.lib_common.base.BaseResponse
import com.bawei.module_repair.model.RepairAddBody
import com.bawei.module_repair.model.RepairModelItem
import com.bawei.module_repair.net.API
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface RepairApi {
    //报修列表
    @GET(API.REPAIR_APPLY)
    suspend fun getRepairApply():BaseResponse<List<RepairModelItem>>
    //报修添加
    @POST(API.REPAIR_APPLY_ADD)
    suspend fun getRepairApplyAdd(@Body repairAddBody: RepairAddBody):BaseResponse<Boolean>
    //删除报修
    @DELETE(API.REPAIR_APPLY_DELETE)
    suspend fun getRepairApplyDelete(@Path("id") id: Int):BaseResponse<Boolean>
}